package cn.edu.ahu.aircondition.storage.realtime.domain;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "computer_performance_his")
public class ComputerPerformanceHisEntity {
    private Integer id;
    private String host;
    private Long mem_total;
    private Long mem_free;
    private Long mem_used;
    private Float mem_percent;
    private String disk_json;
    private Long disk_total;
    private Long disk_used;
    private Long disk_free;
    private Float disk_percent;
    private Date collect_time;

    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Long getMem_total() {
        return mem_total;
    }

    public void setMem_total(Long mem_total) {
        this.mem_total = mem_total;
    }

    public Long getMem_free() {
        return mem_free;
    }

    public void setMem_free(Long mem_free) {
        this.mem_free = mem_free;
    }

    public Long getMem_used() {
        return mem_used;
    }

    public void setMem_used(Long mem_used) {
        this.mem_used = mem_used;
    }

    public Float getMem_percent() {
        return mem_percent;
    }

    public void setMem_percent(Float mem_percent) {
        this.mem_percent = mem_percent;
    }

    public String getDisk_json() {
        return disk_json;
    }

    public void setDisk_json(String disk_json) {
        this.disk_json = disk_json;
    }

    public Date getCollect_time() {
        return collect_time;
    }

    public void setCollect_time(Date collect_time) {
        this.collect_time = collect_time;
    }

    public void setCollect_time(Long collect_time) {
        this.collect_time = new Date(collect_time);
    }

    public Long getDisk_total() {
        return disk_total;
    }

    public void setDisk_total(Long disk_total) {
        this.disk_total = disk_total;
    }

    public Long getDisk_used() {
        return disk_used;
    }

    public void setDisk_used(Long disk_used) {
        this.disk_used = disk_used;
    }

    public Long getDisk_free() {
        return disk_free;
    }

    public void setDisk_free(Long disk_free) {
        this.disk_free = disk_free;
    }

    public Float getDisk_percent() {
        return disk_percent;
    }

    public void setDisk_percent(Float disk_percent) {
        this.disk_percent = disk_percent;
    }
}
